package com.talkweb.securitycamera.data.hadoopFile;

import ohos.app.Context;

/**
 * @author : frank
 * @date : 2021/2/7 9:51
 */
public class SimpleImageMemoryPolicy extends BaseMemoryPolicy {

    private static final int IMAGE_DELETE_COUNT = 20;

    @Override
    BaseMediaProcessor getMediaProcessor(Context context) {
        return new SimpleImageProcessor(context);
    }

    @Override
    int getDeleteCount() {
        return IMAGE_DELETE_COUNT;
    }

    @Override
    public boolean isMemInfoOut() {
        //TODO 判断可用内存是否低于200M
        return false;
    }

}
